package net.qhzw.vip.qiyu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/***
 * 换车申请表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "dts_car_transfer")
public class DtsCarTransfer implements Serializable {
    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 商铺ID
     */
    @TableField(value = "shop_id")
    private Long shopId;

    /**
     * 租车申请ID
     */
    @TableField(value = "car_rental_id")
    private Long carRentalId;

    /**
     * 站点管理员id
     */
    @TableField(value = "admin_id")
    private Long adminId;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 换车站点ID
     */
    @TableField(value = "community_id")
    private Long communityId;

    /**
     * 换车前的车辆
     */
    @TableField(value = "repair_code_bef")
    private Long repairCodeBef;

    /**
     * 换车后的车辆
     */
    @TableField(value = "repair_code_aft")
    private Long repairCodeAft;

    /**
     * 退车状态 0:退车审核失败 1:退车新申请 2:退车审核通过
     */
    @TableField(value = "status")
    private Byte status;

    /**
     * 创建时间
     */
    @TableField(value = "created")
    private Date created;

    /**
     * 审核意见
     */
    @TableField(value = "transfer_opinion")
    private String transferOpinion;

    /**
     * 审核时间
     */
    @TableField(value = "transfer_time")
    private Date transferTime;

    /**
     * 审核管理员
     */
    @TableField(value = "modify_by")
    private Long modifyBy;

    /**
     * 换车前的车辆照片
     */
    @TableField(value = "veh_photo_bef")
    private String vehPhotoBef;

    /**
     * 换车后的车辆照片
     */
    @TableField(value = "veh_photo_aft")
    private String vehPhotoAft;

    /**
     * 换车前车辆备注
     */
    @TableField(value = "remarks_bef")
    private String remarksBef;

    /**
     * 换车后车辆备注
     */
    @TableField(value = "remarks_aft")
    private String remarksAft;

    /**
     * 其他费用
     */
    @TableField(value = "othr_fee")
    private BigDecimal othrFee;

    /**
     * 配件费用
     */
    @TableField(value = "maint_fee")
    private BigDecimal maintFee;

    /***
     * 维修费状态 0:未产生 1:已付2:未付
     */
    @TableField(value = "fee_status")
    private String feeStatus;
    /**
     * 骑手确认 1:已付2:未付
     */
    @TableField(value = "user_confirm")
    private Byte userConfirm;
    /**
     * 骑手意见
     */
    @TableField(value = "user_opinion")
    private String userOpinion;

    /**
     * 支付订单号
     */
    @TableField(value = "pay_no")
    private String payNo;

    /**
     * 退款单号
     */
    @TableField(value = "biz_pay_no")
    private String bizPayNo;

    /**
     * 支付时间
     */
    @TableField(value = "pay_time")
    private Date payTime;

    /**
     * 支付状态 0:未付 1:已付
     */
    @TableField(value = "is_pay")
    private Byte isPay;



}